package com.sihan.framework.etm.service.baseData;

import java.util.List;
import java.util.Map;

import com.framework.model.ApiResult;
import com.framework.model.PageResult;
import com.framework.mybatis.service.BaseService;
import com.sihan.framework.etm.dto.baseData.ToolDTO;
import com.sihan.framework.etm.entity.baseData.ToolModel;
import com.sihan.framework.etm.vo.baseData.ToolVO;
import com.sihan.framework.etm.vo.business.ToolOverviewVO;

public interface ToolService extends BaseService<ToolModel, String> {

	PageResult<ToolVO> selectPage(ToolDTO tool);
	
	void bindOrUnbindDevice(String toolId,String deviceId,Integer type);
	
	ToolVO findById(String id);
	
	void update(ToolOverviewVO tool);

	List<Map<String, String>> selectAll();
	
	ApiResult<?> rfidUnbind(String id);

}
